blob: 4e10b6f6687ce2dd37dd4b849827b04d59155b79 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<script context="module" lang="ts">
export type ProductsModel = {
products: ProductModel[];
};
export type ProductModel = {
title: string;
duration: string;
cost: string;
description: string;
orderLink: string;
};
</script>
<script lang="ts">
export let model: ProductsModel;
let visible = true;
$: if (!model.products || !model.products.length) {
visible = false;
} else {
visible = true;
}
</script>
{#if visible}
{/if}
|